/obj/test/complex
	var/Complex
		A = new(1, 2)
		B = new(3, 4)
		C = new(-9, 2)
		D = new(5, -12)
	var/list/all

	New()
		all = list(A, B, C, D)

	verb
		Abs_test()
			AssertEqual(B.Abs(), 5)
			AssertEqual(D.Abs(), 13)

		Add_test()
			var/Complex/I = new(4, 6)
			Assert(I.Equals(A.Add(B)))

		Conjugate_test()
			for(var/Complex/I in all)
				I = I.Multiply(I.Conjugate())
				AssertEqual(I.imaginary, 0)

		Multiply_test()
			var/Complex/I = new(-5, 10)
			Assert(I.Equals(A.Multiply(B)))